
import { IMessageHandle, IMessageStruct } from "./msgHandleMg";

export class SoldOutMsgHandle implements IMessageHandle{
    get MessageName() { return "soldOut"; }
    get HandleName() { return "SoldOutMsgHandle"; }
    OnReceived(sender, args: IMessageStruct) {
        this.OnMessage && this.OnMessage(args.body);
    }

    OnMessage: (soldOutdata) => void;
}